//
//  ZCBaseRequest.h
//  Sodom
//
//  Created by 赵隆杰 on 2019/12/8.
//  Copyright © 2019 赵隆杰. All rights reserved.
//

#import "YTKNetwork.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger,ZorasunRefreshCacheTimeType)
{
    kZorasunRequestCacheTimeTypeNone=1,
    kZorasunRequestCacheTimeTypeShort=2,
    kZorasunRequestCacheTimeTypeLong=3
};

@interface ZCBaseRequest : YTKRequest

/**
 *  成功状态码
 */
-(BOOL)success;
/**
 *  获取消息
 */
-(NSString * )msg;
/**
 *  获取content
 */
-(id)res;
/**
 *  获取responseJSONObject
 */
-(id)result;
/**
 *   缓存时间，二次请求的时候不真的发起请求 defalut 1 none
 */
@property(nonatomic,assign) ZorasunRefreshCacheTimeType cacheTimeType;
@end

NS_ASSUME_NONNULL_END
